import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus';
import 'element-plus/lib/theme-chalk/index.css';
//Svg图标
import SvgIcon from './components/SvgIcon/SvgIcon.vue'

createApp(App)
    .use(router)
    .use(ElementPlus)
    .component("svg-icon",SvgIcon)
    .mount('#app')
const req = require.context('./assets/icons/svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)